<template>
    <div class="searchBar-container">
        <div class="search-condition">
            <el-select v-model="searchCondition" placeholder="请选择">
                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
            </el-select>
        </div>
        <div class="search-input">
            <el-input :placeholder="placeholder[searchCondition]" v-model="input3">
            </el-input>
        </div>
        <div class="search-btn">
            <el-button type="primary" icon="el-icon-search" size="mini">搜索</el-button>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            placeholder: {
                "物探编号": "请输入物探编号/外部数据编号",
                "排水户搜索": "请输入排水户编号",
                "小区块搜索": "请输入小区块编号或名称",
                "排水分区搜索": "请输入排水分区编号",
                "河道搜索": "请输入河道编号",
                "水质点搜索": "请输入水质点编号",
                "本地坐标": "（格式:x,y）",
                "经纬度": "（格式:经度,纬度）"
            },
            input3: "",
            searchCondition: '物探编号',
            options: [{
                value: '物探编号',
                label: '物探编号'
            }, {
                value: '排水户搜索',
                label: '排水户搜索'
            }, {
                value: '小区块搜索',
                label: '小区块搜索'
            }, {
                value: '排水分区搜索',
                label: '排水分区搜索'
            }, {
                value: '河道搜索',
                label: '河道搜索'
            }, {
                value: '水质点搜索',
                label: '水质点搜索'
            }, {
                value: '本地坐标',
                label: '本地坐标'
            }, {
                value: '经纬度',
                label: '经纬度'
            },]
        };
    },
    methods: {

    },
    computed: {

    },
};
</script>

<style lang="scss" scoped>
.searchBar-container {
    position: absolute;
    padding: 2px;
    width: 450px;
    height: 40px;
    border-radius: 5px;
    background-color: #fff;
    margin-top: 20px;
    margin-left: 80px;
    box-shadow: 0 0 0 2px #0000001a;
    z-index: 4; // 地图弹窗z-index：3

    display: flex;
}

.search-condition {
    width: 170px;
    height: 100%;
    border: 1px solid rgb(177, 175, 175, 0.5);
}

.search-input {
    width: 190px !important;
}

.search-btn {
    height: 100%;
    width: 85px !important;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

::v-deep .el-input__inner {
    height: 34px !important;
}

::v-deep .el-input__inner {
    border: none;
}
</style>